package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uchiha.nova.core.tool.support.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;


/**
 * controller表  实体类
 *
 * @author magic
 */
@Data
@TableName("nova_service")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "Service对象")
public class ServiceEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 名称
	 */
    @Schema(description = "名称")
    @TableField("name")
	private String name;
	/**
	 * 服务地址
	 */
    @Schema(description = "服务地址")
    @TableField("url")
	private String url;
	/**
	 * 请求类型
	 */
    @Schema(description = "请求类型")
    @TableField("method")
	private String method;
	/**
	 * 父id
	 */
    @Schema(description = "父id")
    @TableField("parent_id")
	private Long parentId;

}
